﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Template.Master" Inherits="System.Web.Mvc.ViewPage<JLL.China.Web.Areas.Portal.Models.EventModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<!-- start id-form --> 
		<% using (Html.BeginForm("UploadFile", "Event", FormMethod.Post, new { id = "formID", @class = "validateform", enctype = "multipart/form-data" }))    
     { %>
        <% = Html.HiddenFor(x => x.Event.ID) %>
        <table border="0" cellpadding="0" cellspacing="0"  class="tbl-form">
        <tr>
            <th valign="top"><span class="mandate">*</span> Title:</th>
            <td>
            <%= Html.TextBoxFor(m => m.Event.Title, new { name = "title", id = "title", @class = "validate[required] inp-form" })%>
            </td>
            <td>
               
            </td>
        </tr>
        <tr>
            <th valign="top"><span class="mandate">*</span> Event Start Date:</th>
            <td>
            <%= Html.EditorFor(m => m.Event.EventDate, new { id="startdate" })%>
            
            <span style="color:#ccc;">Eg: 09-Aug-2011 (dd-MMM-yyyy)</span>
            </td>
            <td>
               
            </td>
        </tr>
        <tr>
            <th valign="top"><span class="mandate">*</span> Event Start Time:</th>
            <td>
             <%= Html.TextBoxFor(m => m.Event.EventTime, new { name = "event_time", id = "event_time", @class = "validate[required] inp-form" })%>
             <span style="color:#ccc;">Eg: 17:00 (hh:mm)</span></td>
            <td>
                
            </td>
        </tr>
        
        <tr>
            <th valign="top"><span class="mandate">*</span> Event End Date:</th>
            <td>
            <%= Html.EditorFor(m => m.Event.EventDateEnd, new { id = "enddate"})%>
            <span style="color:#ccc;">Eg: 09-Aug-2011 (dd-MMM-yyyy)</span></td>
            <td>
                
            </td>
        </tr>
        
        <tr>
            <th valign="top"><span class="mandate">*</span> Event End Time:</th>
            <td>
            <%= Html.TextBoxFor(m => m.Event.EventTimeEnd, new { name = "event_time_end", id = "event_time_end", @class = "validate[required] inp-form" })%>
            <span style="color:#ccc;">Eg: 17:00 (hh:mm)</span></td>
            <td>
               
            </td>
        </tr>
        
        <tr>
            <th valign="top"><span class="mandate">*</span> Email:</th>
            <td>
            <%= Html.TextBoxFor(m => m.Event.ContactEmail, new { name = "event_email", id = "event_email", @class = "validate[required,custom[email]] inp-form" })%>
            </td>
            <td>
                
            </td>
        </tr>
        
        <tr>
            <th valign="top"><span class="mandate">*</span> Venue:</th>
            <td>
            <%= Html.TextBoxFor(m => m.Event.Venue, new { name = "venue", id = "venue", @class = "validate[required] inp-form" })%>
            </td>
            <td>
                
            </td>
        </tr>
        
        <tr>
        <th valign="top"><span class="mandate">*</span> Status:</th>
        <td>
            <div class="select_holder">
                 <%=Html.DropDownListFor(m => m.Event.Status, new List<SelectListItem>
                     {
                        new SelectListItem{Selected = true, Text="Active", Value = "true" }, 
                        new SelectListItem{Selected = false, Text="Inactive", Value = "false" },
                     }, new { id = "event_status", name = "event_status", @class = "chzn-nosearch chz" })%>
            </div>
        </td>
        <td>
             
        </td>
        </tr>
        
        <tr>
            <td colspan="3" ><div class="form_divider"></div></td><!--------------------------------------------------------------------->
        </tr>
        <tr>
            <th valign="top"><span class="mandate">*</span> Event Summary:</th>
            <td style="width:600px;">
            <input id="summary_validate" class="validate[required]" style="visibility:hidden;height:0;"/>
             <%= Html.TextAreaFor(m => m.Event.EventSummary, new { id = "summary", name = "summary", @class = "ckeditors", cols = "88", rows = "10" })%>
            </td>
            <td>
                
            </td>
        </tr>
        <tr>
            <th valign="top"><span class="mandate">*</span> Event Detail:</th>
            <td style="width:600px;">
             <input id="content_validate" class="validate[required]" style="visibility:hidden;height:0;"/>
                <%= Html.TextAreaFor(m => m.Event.EventContent, new { id = "event_content", name = "event_content", @class = "ckeditors", cols = "88", rows = "10" })%>
            </td>
            <td>
                
            </td>
        </tr>
        <tr>
        <td></td>
        <td> <input type="file" name="files" /><br />
        <input type="file" name="files" /></td>
        </tr>
        <tr>
            <td colspan="3">&nbsp;</td>
        </tr>
        <tr>
            <th>&nbsp;</th>
            <td valign="top">
                <input type="submit" value="" class="form-submit" onclick="checkForm()" />
                <input type="reset" value="" class="form-reset"  />
            </td>
            <td></td>
        </tr>
        </table>
   <%} %>
	<!-- end id-form  -->
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="CSS" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="JS" runat="server">
</asp:Content>
